package com.yxw.blog.dao;

import com.yxw.blog.bean.entity.Great;
import org.springframework.stereotype.Repository;

/**
 * @author yexinwei
 */
@Repository
public interface GreatDao {

    Integer deleteByArticleIdAndUserId(Integer articleId, Integer userId);

    Integer insertGreat(Integer userId , Integer greatArticleId);

    Great getGreatByArticleIdAndUserId(Integer userId, Integer articleId);

    Integer deleteByArticleId(Integer articleId);
}
